
<div class="modal" ng-controller="ActivitiMessageDefinitionsPopupCtrl">
    <div class="modal-dialog modal-wide">
        <div class="modal-content form-horizontal">

            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" ng-click="close()">&times;</button>
                <h2>{{'PROPERTY.PROPERTY.EDIT.TITLE' | translate:property}}</h2>
            </div>

            <div class="modal-body">
            
                <div class="row row-no-gutter">

                	<div class="col-xs-6">
                        <div ng-if="translationsRetrieved" class="kis-listener-grid" ng-grid="gridOptions"></div>
            	        <div class="pull-right">
            	            <div class="btn-group">
            	                <a class="btn btn-icon" rel="tooltip" data-title="{{ACTION.ADD | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="addNewMessageDefinition()"><i class="glyphicon glyphicon-plus"></i></a>
            	                <a class="btn btn-icon" rel="tooltip" data-title="{{ACTION.REMOVE | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="removeMessageDefinition()"><i class="glyphicon glyphicon-minus"></i></a>
            	            </div>
            	        </div>
            		</div>

                    <div class="col-xs-6" ng-show="selectedMessages && selectedMessages.length > 0">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">{{'PROPERTY.MESSAGEDEFINITIONS.ID' | translate}}：</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control" ng-model="selectedMessages[0].id">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">{{'PROPERTY.MESSAGEDEFINITIONS.NAME' | translate}}：</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control" ng-model="selectedMessages[0].name">
                            </div>
                        </div>

                    </div>

            	</div>
            	
            </div>

            <div class="modal-footer">
                <button ng-click="cancel()" class="btn btn-primary" translate>ACTION.CANCEL</button>
                <button ng-click="save()" class="btn btn-primary" translate>ACTION.SAVE</button>
            </div>

        </div>
    </div>
</div>